package com.pd.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "pditems",shards = 3,replicas = 2)
public class Item {
    @Id
    private Long id;
    private String brand;
    private String title;
    @Field(name = "sell_point")
    private String sellPoint;
    private Double price;
    private String image;
    private String cid;
    private Integer status;
    private String created;
    private String updated;
}
